package com.myapp.struts.modele;

import com.sun.org.apache.bcel.internal.generic.ARRAYLENGTH;
import java.util.ArrayList;
import java.util.List;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author jackson
 */
public class Promotion {

    private int npromotion;
    private String nom;
    private List<Etudiant> etudiants;
    private List<Matiere> matieres;

    public Promotion() {
    }

    public Promotion(int npromotion, String nom, List<Etudiant> etudiants, List<Matiere> matieres) {
        this.npromotion = npromotion;
        this.nom = nom;
        this.etudiants = new ArrayList<Etudiant>();
        this.matieres = new ArrayList<Matiere>();
    }

    /**
     * @return the npromotion
     */
    public List<Etudiant> getEtudiants() {
        return etudiants;
    }

    public void setEtudiants(List<Etudiant> etudiants) {
        this.etudiants = etudiants;
    }
    
    public int getNpromotion() {
        return npromotion;
    }

    /**
     * @param npromotion the npromotion to set
     */
    public void setNpromotion(int npromotion) {
        this.npromotion = npromotion;
    }

    /**
     * @return the nom
     */
    public String getNom() {
        return nom;
    }

    /**
     * @param nom the nom to set
     */
    public void setNom(String nom) {
        this.nom = nom;
    }

    public List<Matiere> getMatieres() {
        return matieres;
    }

    public void setMatieres(List<Matiere> matieres) {
        this.matieres = matieres;
    }
    
    

}
